package com.hanhai.zrb.api.biz.service;

import java.util.List;
import java.util.Map;

import com.github.pagehelper.PageInfo;
import com.hanhai.zrb.model.project.Industry;
import com.hanhai.zrb.model.project.dto.IndustryDto;


public interface IndustryService {
	
	Industry  selectByPrimaryKey (int id );

	int deleteByPrimaryKey (Long id );

	int insert( Industry record );

	int insertSelective( Industry record );

	int updateByPrimaryKeySelective( Industry record );

	int updateByPrimaryKey ( Industry record );
	
	List<Industry> selectAll();
	List<Industry> selectSquAll();
	List<Industry> selectIndustryByIds(List<Integer> idsList);
	
	Map<Integer,Industry> selectAllMap();
	
	/**
	 * 后台使用的通用的查询有分页
	 * 
	 */
	public PageInfo queryPageByCondition(IndustryDto dto);
	
	/**
	 * 
	 * @Title: queryByCondition 
	 * @Description: TODO(通过条件查询数据) 
	 * @param  AgenciesTypeDto dto
	 * @return List<AgenciesTypeVo>(返回类型 ) 
	 * @throws
	 */
	public List<Industry> queryByCondition(IndustryDto dto);
	
    /**
     * 判断名称是否重复
     * @param name
     * @return Integer
     */
    public Integer  checkIndustryName(String name);
    
    boolean upageStatus(List<Long> ids,String status);
}
